/**
 * Created by wang on 2016-8-31.
 */
define(['angular'], function (angular) {
    "use strict";

    var directive = function () {
        return {
            require: "^ionSlideTabs",
            link: function ($scope, $element, $attrs, $parent) {
                $parent.addTab($attrs.ionSlideTabLabel);
            }
        }
    };

    directive.$inject = [];
    return directive;
});